﻿using AutoMapper;
using BPMN.Domain.Entity;
using BPMN.Domid.Dto.PermissionDto;
using BPMN.Domid.Dto.RoleDto;
using BPMN.Domid.Dto.UserDtos;
using BPMN.Domid.Model.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static BPMN.Domid.Dto.RoleDto.AddUserRoleDto;
using static BPMN.Domid.Dto.RoleDto.UpdateUserRoleDto;

namespace BPMN.Domid.Model.Profiles
{
    public class AreProfile:Profile
    {
        public AreProfile()
        {
            CreateMap<User, UserDto>().ReverseMap();
            CreateMap<User, UsersDto>().ReverseMap(); 
            CreateMap<User,CreateUpdateUserDto>().ReverseMap();
            CreateMap<User, UserresDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<AddUserRoleDto, User>().ReverseMap();
            CreateMap<AddUserRoleDtos, UserRole>().ReverseMap();
            CreateMap<ListUserRoleDto, UserRole>().ReverseMap();
            CreateMap<UpdateUserRoleDto, User>().ReverseMap();
            CreateMap<UpdateUserRoleDtos, UserRole>().ReverseMap();
            CreateMap<PermissionDtos, Permission>().ReverseMap();
            CreateMap<GetRoLEPermissionDto, RolePermission>().ReverseMap();
        }
    }
}
